"use strict";!function(){var m,f,u,y,w,a,c,g=!1,r={},v=function(){function e(e,t,r,o,i){if(f=e,a=o,w=r,m=t,u=i)y=u.storage;else if("ls"===e.storage)try{y=new(brandmetrics.getModule(5))(f,m,!1)}catch(e){y=void 0}else if("1pc"===e.storage)try{y=new(brandmetrics.getModule(35))(f,m,!1)}catch(e){y=void 0}}return e.prototype.isReady=function(){return c&&c.isInitiated},e.prototype.hasConsent=function(){return!0},e.prototype.addEventListener=function(e){"ready"===e.event&&this.isReady()?e.handler({api:this}):m.on(e)},e.prototype.triggerSurvey=function(o){var a,n=this,s=!1;void 0!==(null==o?void 0:o.timeout)&&01e3*f.survey.interval*60&&(i=Math.max(i,l.lastSurvey),Date.now()-l.lastSurvey<6048e5&&(c+=l.nbrOfSurveys),t.push(l))}(c>=f.survey.maxTot||Date.now()-i<1e3*f.survey.intervalTot*60)&&(e=!0)}if(!0===e)return clearInterval(a),d(!1),void m.emit("survey_loaded",{available:!1,showed:!1});var p=Math.random()<=f.surveyRandomization;!g&&(u.callback||u.mid||u.isTest||u.force||p)?(g=!0,w.ExecuteConfigRequest(u.mid||null,u.isTest||!1,u.force,u.dtName,t,function(e){if(y&&y.removeSurveyConfiguration(),!s){g=!1,clearTimeout(a);var t=!1,r=!1,o=!1;if(void 0!==e){o=!0;var i=n.createSurvey(e.surveyConfig);d(!0,e.surveyConfig,i),t=!0,u.autoRender&&(i.show(),r=!0)}t||d(!1),m.emit("survey_loaded",{available:o,showed:r,mid:null==e?void 0:e.surveyConfig.measurementId})}})):p||(clearTimeout(a),m.emit("survey_loaded",{available:!1,showed:!1}),m.emit("surveyloadskipped",u))},e.prototype.createSurvey=function(e){if(void 0===e||void 0===e.measurementId||void 0===e.displayOption)throw new Error("");if(a){var t=a.create(e);return r[e.measurementId]=t}throw new Error("brandmetrics: This configuration does not support creating surveys.")},e.prototype.addMetadata=function(e){if(void 0===e||void 0===e.name||void 0===e.value||"string"!=typeof e.value)throw new Error("Invalid Argument");w.upsertParam(e.name,e.value,e.types)},e.prototype.setDoNotTrack=function(){var e=localStorage;if(e)try{e.setItem("__bmdnt","true"),e.removeItem("__bm_m"),e.removeItem("__bm_s")}catch(e){}w.postOptout()},e.prototype.triggerExposure=function(e){if(void 0===u)throw new Error("brandmetrics: triggerExposure only works when collection is activated.");u.triggerExposure(e,{type:"api",data:void 0})},e.prototype.updateExposure=function(e){if(void 0===u)throw new Error("brandmetrics: updateExposure only works collection is activated.");u.updateExposureProperties(e.exposureId,{active:e.properties,meta:e.adMetadata})},e.prototype.endExposure=function(e){if(void 0===u)throw new Error("brandmetrics: endExposure only works collection is activated.");u.endExposure(e)},e.prototype.collectAds=function(e){},e.prototype.getState=function(){return y?y.state():void 0},e.prototype.reinitialize=function(){void 0!==u&&u.reinitialize()},e.prototype.addUserIds=function(e){w.ConfigureSingleUsers(e)},e.prototype.getOptions=function(){return f},e.prototype.stop=function(){void 0!==u&&u.stop(),void 0!==m&&m.stop()},e}();window.brandmetrics.register({id:0,ctor:function(e,t,r,o,i,a,n){var s=new v(e,t,r,o,i),d={bm:s,collection:u,options:e,utils:t,client:r,storage:y,callback:function(){n(s),m.emit("ready",{api:s})}};switch(a){case 0:c=new(brandmetrics.getModule(19))(d);break;case 1:c=new(brandmetrics.getModule(20))(d);break;default:throw new Error("Failed to start brandmetrics, the mode: ".concat(a," is not defined."))}c.start()}})}(); "use strict";!function(){var s,y,g,w,b,E,r,u,k=function(e,t,i,r,n,o){var c=this;switch(this.measurements=[],this.state=0,this.start=void 0,this.latest=void 0,this.maxDuration=Number.MAX_VALUE,this.thresholdTimer=void 0,this.active=!1,this.updateProperties=function(e){for(var t=e.active||{},i=!1,r=0,n=Object.keys(t);ri+1){var r=e.latest-e.start;e.start=t-r-i}e.maxDuration&&e.start&&t-e.start>e.maxDuration?e.latest=e.start+1e3*e.maxDuration:e.latest=t},l=function(e){if(1!==e.state){for(var t=0,i=e.measurements;tt[0]&&e[1]t[1]},e.prototype.rectsRatio=function(e,t){var r=0;if(this.rectsIntersect(e,t)){var n=Math.max(e[0],t[0]),o=Math.min(e[2],t[2]),i=Math.max(e[1],t[1]),a=Math.min(e[3],t[3]);r=m([n,i,o,a])/m(t)}return r},e.prototype.inView=function(e){var t=this.getPageRect(),r=this.getElementRect(e),n=m(r)>m(t),o=this.getElementPixels(e),i=this.inViewByRatio(o,this.rectsRatio(t,r)),a=n?c(.3e.conf.count}(i)){var r=!function(e){for(var n=window.location.href,t=0,o=e;t